package salesDB;
/*
 * SalesRecord.java
 *
 * Created on April 20, 2007, 1:44 PM
 *
 * SalesRecord is the object that contains all the
 * data from a Vending machine sale.
 */

import java.io.Serializable;
import java.util.Date;
/**
 *
 * @author David Roberts
 */

public class SalesRecord implements Serializable
{
	
	private static final long serialVersionUID = 3273141396382357627L;
	public Date date;
    public int transactionID;
    public double transactionTotal;    
    public LineItem[] itemList;
    public String accountID;
    ///public paymentType paymentMethod;
    public String authorizationID;
    public int vendingMachineID;
    
    /** Creates a new instance of SalesRecord */
    public SalesRecord ()
    {
        
    }
    
    public String toString()
    {
        return new String("SalesRecord " + transactionID + " on :" + date.toString ());
        
    }
}

//enum paymentType
//{CASH, CREDIT, DEBIT
//}
